if __name__ == "__main__":

    import sys
    import os
    import nose

    # prepend pytoss source to the search path to ensure that all pytoss
    # imports happen from the source directory
    sys.path.insert( 0, os.path.join( os.path.dirname(__file__), ".." ) )

    # define some helpful pre-configurations for nosetests
    COVERAGE = [
        '--with-coverage',
        '--cover-package=pytoss',
    ]

    CONFIGS = ["-v"]

    # run nosetests
    nose.core.TestProgram(defaultTest = 'tests', argv = (sys.argv + CONFIGS))

